package com.longsunhd.yum.buffalo.base;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.longsunhd.yum.buffalo.R;
import com.longsunhd.yum.buffalo.bean.LoginBean;

/**
 * 作者：黄宣淇
 * 时间：2021/5/8 0008
 * 如何代码没有备注，一个月后，只有你和上帝知道--鲁迅
 */
public class MainListViewAdapter extends ListBaseAdapter {
    @Override
    public View getView(int position, View convertView, ViewGroup viewGroup) {
        View view = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.item_list_main, null);
       LoginBean dataBean= (LoginBean) _data.get(position);
       TextView textView= view.findViewById(R.id.mTvName);
        textView.setText(dataBean.getData().getName()+"");
        return view;
    }
}
